Modal Management
Ollama Model Management Commands
ollama list
What: Lists all models installed locally.
Why: Check which models are available for use.
How: Run this command in terminal.
Example:
ollama list
ollama pull <model>
What: Downloads a model from the Ollama registry.
Why: Required to have the model locally.
How: Replace <model>
with the desired model name.
Example:
ollama pull llama2
ollama stop <model>
What: Stops a running model instance.
Why: Free up system resources.
How: Replace <model>
with the model name.
Example:
ollama stop llama2
ollama delete <model>
What: Deletes a model from local storage.
Why: Free disk space or remove unwanted models.
How: Replace <model>
with the model name.
Example:
ollama delete llama2
ollama update
What: Updates the Ollama CLI tool.
Why: Get the latest features and bug fixes.
How: Run this command to upgrade Ollama.
Example:
ollama update